package hb.software.login.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.login.domain.Login;
import hb.software.login.service.LoginManager;
import hb.software.web.spring.controller.GenericController;

@Controller
@RequestMapping("/login")
public class LoginController extends GenericController<Login, Long, LoginManager> {

	LoginManager loginManager;

	@Autowired
	public void setLoginManager(LoginManager loginManager) {
		this.loginManager = loginManager;
		this.manager = this.loginManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/login/index";
		return result;
	}

}

